package container.set;

import java.util.HashSet;
import java.util.Set;

public class TestHashSet
{
    public static void main (String[] args)
    {
        Set<String> hashSet1 = new HashSet<>();
        
        hashSet1.add("666");
        hashSet1.add("是的，德玛西亚");
        hashSet1.add("shima?");
    
        for(String temp : hashSet1)
        {
            System.out.println(temp);
        }
    
        System.out.println();
        
        boolean yes = hashSet1.remove("是的，德玛西亚");
        System.out.println(yes);
    
        for(String temp : hashSet1)
        {
            System.out.println(temp);
        }
    }
}
